# encoding:utf-8
from config import load_config
from wechat_handler import WeixinRobot
from log import logger


# 启动函数
def run():
    try:
        load_config()
        wx_robot = WeixinRobot()
        wx_robot.start()
    except Exception as e:
        logger.error("App startup failed!")
        logger.exception(e)

if __name__ == '__main__':
    run()